package com.muyu.product.domain.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.common.core.web.domain.BaseEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;

/**
 * @ClassName ProductSkuReq
 * @Description 描述
 * @Author ShiYu.Cui
 * @Date 2024/3/26 21:02
 */
@Data
@ApiModel(description = "商品sku")
public class ProductSkuReq extends HashMap {
    @ApiModelProperty(value = "SKU ID")
    private Long id;
    @ApiModelProperty(value = "销售价格")
    private BigDecimal salePrice;
    @ApiModelProperty(value = "促销价格")
    private BigDecimal promotionPrice;
    @ApiModelProperty(value = "库存")
    private Integer stock;
    @ApiModelProperty(value = "预警库存")
    private Integer stockAlert;
    @ApiModelProperty(value = "商品id")
    private Integer productId;
    @ApiModelProperty(value = "sku背景图地址")
    private String bgImg;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public Date createTime;
    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public Date updateTime;
    @ApiModelProperty(value = "是否删除")
    public Integer isDelete;
    @ApiModelProperty(value = "创建人ID")
    public Long createBy;
}
